<%@ page import="org.gtesoreria.Cuota" %>
<%@ page import="org.gtesoreria.Adelanto" %>
<div id="cuota${i}" class="cuota-div" <g:if test="${hidden}">style="display:none;"</g:if>>
    <g:hiddenField name='cuotaList[${i}].id' value='${cuota?.id}'/>
    <g:hiddenField name='cuotaList[${i}].deleted' value='false'/>
	<g:hiddenField name='cuotaList[${i}].new' value="${cuota?.id == null?'true':'false'}"/>
    <table>
    	<tr>
    		<td>
    			<g:if test="${i.equals('_clone') }">*</g:if>
    			<g:else>${i + 1}</g:else>
    			
    		</td>
    		<td>
    			<g:textField name='cuotaList[${i}].monto' value="${fieldValue(bean: cuota, field: 'monto')}" size="20"/>
    		</td>
   
    		<td>
    			<g:datePicker name="cuotaList[${i}].fechaVencimiento" precision="month" value="${cuota?.fechaVencimiento}"  />
    		</td>
    		<td>
    			<g:checkBox name='cuotaList[${i}].isPagada' value='${cuota?.isPagada}' />
    		</td>
    		<td>
    			<span class="del-cuota">
        			<img src="${resource(dir:'images/skin', file:'icon_delete.png')}" 
            			style="vertical-align:middle;"/>
    			</span>
    		</td>
    	</tr>
    </table>
</div>

